import sys
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
from MW2 import Ui_Dialog2
import demo2平移
import demo2旋转
import demo2缩放
import demo2镜像


class mwindow2(QWidget, Ui_Dialog2):
    def __init__(self):
        super(mwindow2, self).__init__()
        self.setupUi(self)
        self.connecter()

    def pb(self):
        demo2平移.main()

    def pb_2(self):
        demo2镜像.main()

    def pb_3(self):
        demo2缩放.main()

    def pb_4(self):
        demo2旋转.main()

    def connecter(self):
        self.pushButton.clicked.connect(self.pb)
        self.pushButton_2.clicked.connect(self.pb_2)
        self.pushButton_3.clicked.connect(self.pb_3)
        self.pushButton_4.clicked.connect(self.pb_4)
        self.pushButton_5.clicked.connect(self.close)


if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = mwindow2()
    w.show()
    sys.exit(app.exec_())